<?php

class Application_Form_SearchForm extends Zend_Form
{
	public function init()
	{
		$username = $this->addElement('textarea', 'search', array(
            'filters'    => array('StringTrim','Digits'),
            'cols'		=>	20,
            'rows'		=>	8,
            'required'   => true,
            'label'      => 'Enter ISBN here, Separated by commas',
        ));
        
        $login = $this->addElement('submit', 'login', array(
            'required' => false,
            'ignore'   => true,
            'label'    => 'Search ISBN',
        ));
        
        $this->setDecorators(array(
            'FormElements',
            array('HtmlTag', array('tag' => 'dl', 'class' => 'zend_form')),
            array('Description', array('placement' => 'prepend')),
            'Form'
        ));
		
	}
}